﻿@model workflowMVC.Models.StudentModel

@{
    ViewBag.Title = "Tạo tài khoản sinh viên";
}



<h2 style="text-align:center">Tạo tài khoản sinh viên</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <table class="ui-widget-content ui-corner-all" style="margin:auto;padding:5px">  
        <tr>
            <td>
                @Html.LabelFor(model => model.Name)
            </td>
            <td>
                @Html.TextBoxFor(model => model.Name)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.Name)
            </td>
        </tr>
        
      
        <tr>
            <td>
                @Html.LabelFor(model => model.NumCode)
            </td>
            <td>
                @Html.TextBoxFor(model => model.NumCode)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.NumCode)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.Email)
            </td>
            <td>
                @Html.TextBoxFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.Email)
            </td>
        </tr>
        
        <tr>
            <td>
                @Html.LabelFor(model => model.DoB)
            </td>
            <td>
                @Html.TextBoxFor(model => model.DoB, new {@class="dtpick" })
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.DoB)
            </td>
        </tr>  
        <tr>
            <td>
                @Html.LabelFor(model => model.Address)
            </td>
            <td>
                @Html.TextBoxFor(model => model.Address)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.Address)
            </td>
        </tr>     
        <tr>
            <td>
                @Html.LabelFor(model => model.Class)
            </td>
            <td>
                @Html.DropDownListFor(m => m.Class, ViewData["StudyClass"] as SelectList, "---Chọn Lớp---")
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.Class)
            </td>
        </tr>
        
        <tr>
            <td>
                @Html.LabelFor(model => model.StartYear)
            </td>
            <td>
                @Html.DropDownListFor(m => m.StartYear, ViewData["StartYear"] as SelectList, "---Chọn Khóa học---")
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.StartYear)
            </td>
        </tr>
        
        <tr>
            <td>
                @Html.LabelFor(model => model.TimeLast)
            </td>
            <td>
                @Html.DropDownListFor(m => m.TimeLast, ViewData["TimeLast"] as SelectList, "---Chọn Thời hạn---")
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.TimeLast)
            </td>
        </tr>
        
        <tr>
            <td>
                @Html.LabelFor(model => model.EduMode)
            </td>
            <td>
                @Html.DropDownListFor(m => m.EduMode, ViewData["EduMode"] as SelectList, "---Chọn Hệ---")
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.EduMode)
            </td>
        </tr> 
        <tr>
            <td></td>
            <td><input type="submit" value="Tạo mới" /></td>
        </tr>
        
    </table>
}

